package ysc.cqnu.operdb.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;
import ysc.cqnu.operdb.entity.ResultData;
import ysc.cqnu.operdb.serviceImpl.UpdateCaiJianInfoNoImgServiceImpl;
import ysc.cqnu.operdb.serviceImpl.UpdateDiaoKeInfoNoImgServiceImpl;

@CrossOrigin
@Controller
@ResponseBody
public class UpdateDiaoKeInfoNoImgController {
    @Autowired
    private ResultData resultData;
    @Autowired
    private UpdateDiaoKeInfoNoImgServiceImpl updateDiaoKeInfoNoImgService;
    @RequestMapping(value = "/updatediaokeInfoNoImg",method = RequestMethod.POST)
    public ResultData updatediaokeInfoNoImg(@RequestParam(value = "diaoke") String diaoke, @RequestParam(value = "visualize") String visualize, @RequestParam(value = "purpose") String purpose,
                                             @RequestParam(value = "theSite") String theSite, @RequestParam(value = "bfDescribe")String bfDescribe, @RequestParam(value = "id")String id){
        System.out.println("雕刻信息不带图片视频修改前端连接");
        resultData = updateDiaoKeInfoNoImgService.updateDiaoKeInfoNoImgService(diaoke,visualize,purpose,theSite,bfDescribe,id);
        return resultData;
    }
}
